package com.zjw.exception;

import com.zjw.system.SystemReturnEnum;
import lombok.Data;

@Data
public class SystemException extends RuntimeException{
    private Integer code;

    private String message;

    public SystemException(SystemReturnEnum systemReturnEnum){
        this.code = systemReturnEnum.getCode();
        this.message = systemReturnEnum.getMessage();
    }
}
